#~按位取反 & | ^ >> <<
a=10            #10的二进制为00001010
print(~a)       #~a=11110101
x=10
y=7
print(x&y)      #00001010 & 00000111==00000010
print(x|y)      #00001010 | 00000111==00001111
print(x^y)      #00001010 ^ 00000111==00001101
c=11
print(c<<2)     #00001011-->00101100
d=11
print(d>>2)     #00001011-->00000010